#define _CRT_SECURE_NO_WARNINGS
#include "Stack.h"

int main()
{
	Stack st;
	InitStack(&st);
	StackPush(&st, 1);
	StackPush(&st, 2);
	StackPush(&st, 3);
	printf("%d\n", StackTop(&st));
	printf("size=%d\n", StackSize(&st));
	StackPop(&st);
	while (!StackEmpty(&st))
	{
		printf("%d ", StackTop(&st));
		StackPop(&st);
	}
	DesStack(&st);
	return 0;
}